using System;
using System.Collections.Generic;
using System.Text;
using DataBaseManager;
using System.Data;
using System.IO;

namespace BL.DataAccess
{
	public class DataBase
	{
		private static Database m_database;
		internal static Database Current
		{
			get
			{
                if (m_database == null)
                {
                    //m_database = new Database(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.AppDomain.CurrentDomain.BaseDirectory + "bd.mdb");


                    m_database = new Database(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Configuration.Current.DataBasePath);



                }
				
				return m_database;
			}
		}
	}
}
